home *** CD-ROM | disk | FTP | other *** search
/ Nautilus 1992 July / Nautilus-3-8 / Nautilus-3-8.bin / Tools & Utilities / Techy Stuff / Source ƒ / Dragonsmith 1.0b2 / Main.c < prev    next >
Encoding:
C/C++ Source or Header  |  1992-05-14  |  728 b   |  35 lines

  1. /*
  2.     Main.c
  3.     
  4.     Main file for Dragon projects
  5.     
  6.     Copyright ⌐ 1992 by Paul M. Hoffman
  7.     Send feedback to paul.hoffman@um.cc.umich.edu
  8.     
  9.     This code may be freely used, altered, and distributed in any way you want as long as:
  10.         1.    It is GIVEN away rather than sold;
  11.         2.    This statement and the above copyright notice are left intact.
  12.     
  13.     Created    24 Apr 1992    Extracted from Dragon.c
  14.     Modified    01 May 1992    No longer calls Test ╤ Dragon::Run will do so when debugging
  15.     
  16. */
  17.  
  18. #include    "Dragon.h"
  19.  
  20. Dragon    *gDragon;        // This is it ╤ the global dragon!
  21.  
  22. void main (void);
  23. Dragon *CreateGDragon (void);
  24.  
  25. void main (void)
  26. {
  27.     gDragon = CreateGDragon ();
  28.     if (gDragon != NULL) {
  29.         gDragon->Start ();
  30.         gDragon->Run ();
  31.         gDragon->Finish ();
  32.     }
  33. }
  34.  
  35.